<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<title>Virtual Stock Game System</title>

 <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> 

<script type="text/javascript">
var xmlhttp

function login()
{
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}
	var email=document.getElementById("email").value;
	var password=document.getElementById("password").value;
	
	var url="PlayerLoginServlet?";
	url=url+"email="+email+"&password="+password;
	//url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function stateChanged()
{
	if (xmlhttp.readyState==4)
	{
		document.getElementById("dynamicContent").innerHTML=xmlhttp.responseText;
	}
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	return null;
}

function getXMLObject()  //XML OBJECT
{
	var xmlHttp = false;
	try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP")  // For Old Microsoft Browsers
	} catch (e) {
		try {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")  // For Microsoft IE 6.0+
		} catch (e2) {
			xmlHttp = false   // No Browser accepts the XMLHTTP Object then false
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();        //For Mozilla, Opera Browsers
	}

	return xmlHttp;  // Mandatory Statement returning the ajax object created
}
</script>

</head>

<body>

<div id="container">

	<!-- Start of Page Header -->

	<div id="header_container">
	<div id="page_header">




		<div id="header_welcome">
		<h3><BR><BR><BR>Welcome to Virtual Stock Game System</h3>

			<div id="welcome_text">

<p>This system is designed for <a href="http://bank.cs.columbia.edu/classes/cs4156/"> COMS W4156 Advanced Software Engineering </a> </p>
				

				

			</div>

		</div>

	</div>
	</div>

	<!-- End of Page Header -->


	<!-- Start of Left Sidebar -->

	<div id="left_sidebar">

		<!-- Start of User Login -->

		<div class="box_container">
		<div id="userlogin">

			<h2><span>User Login</span></h2>

			<form id="playerLonginForm" method="post">

				<div class="form_field">
				<strong>Email</strong>
				<input type="text" id = "email" name="email" maxlength="30"/>
				</div>

				<div class="clearthis">&nbsp;</div>

				<div class="form_field">
				<strong>Password</strong>
				<input type="password" id = "password" name="password" maxlength="30" />
				</div>

				<div class="clearthis">&nbsp;</div>

				<div class="form_field">
				<input type="button" onclick="javascript:login();" value="Login"/>
				</div>

			</form>

			<div id="link-password">
			<a href="registration.html"><strong>New Player Registration</strong></a>
			</div>

		</div>
		</div>

		<!-- End of User Login -->


		<!-- Start of Latest News -->

		<div class="box_container">
		<div id="news">

			<h2><span>Latest News</span></h2>

<h4>
Nov 09, 2009
</h4>

<p>If you're looking for New York Stock Exchange information, please click <a href="http://www.nyse.com/">NYSE</a>.</p>
				


<h4>
Nov 07, 2009
</h4>

<p>Even more websites all about Stock Exchange <a href="http://www.nyse.com/">NYSE</a>.</p>
<p>Even more websites all about Stock Exchange <a href="http://www.nyse.com/">NYSE</a>.</p>

			<div class="link-more">
			<a href="http://www.nyse.com/">Read More</a>
			</div>

			<div class="clearthis">&nbsp;</div>
		</div>
		</div>

		<!-- End of Latest News -->


	</div>

	<!-- End of Left Sidebar -->


	<!-- Start of Main Content Area -->

	<div id="maincontent_container">
	<div id="maincontent">


		<div id="maincontent_top">

			<!-- Start of How We Started -->

			<div id="started_container">
			<div id="started">
			
				<div id="dynamicContent"></div>

				
			</div>
			</div>

			<!-- End of How We Started -->
			
			


			<div id="right_container">

				<!-- Start of We Also Do Repairing -->

				<div id="repairing">




				</div>

				<div class="clearthis">&nbsp;</div> 

				<!-- End of We Also Do Repairing -->


				<!-- Start of Get Special Offer -->

				<div id="offer_container">
				<div id="offer">


<p>
administrator login
</p>

					<div class="link-go">
					<a href="adminIndex.html"><span>Go</span></a>
					</div>

				</div>
				</div>

				<div class="clearthis">&nbsp;</div>

				<!-- End of Get Special Offer -->

			</div>

			<div class="clearthis">&nbsp;</div>

		</div>




	</div>
	</div>

	<!-- End of Main Content Area -->


<!-- Start of Page Footer -->

	<div id="page_footer">

	Powered by <a href="http://bank.cs.columbia.edu/classes/cs4156/">Lofty Number One Team</a>

	</div>

	<!-- End of Page Footer -->


	<div class="clearthis">&nbsp;</div>

</div>

</body>
</html>